package cn.chainco.cts.iserviceImpl;


import java.util.List;

import cn.chainco.cts.idao.ICompanyDao;
import cn.chainco.cts.idao.IEmplyeeDao;
import cn.chainco.cts.iservice.ICompanyManager;
import cn.chainco.cts.iservice.IEmployeeManager;
import cn.chainco.cts.jdo.Company;
import cn.chainco.cts.jdo.Employee;
import cn.chainco.cts.jdo.User;
import cn.chainco.cts.utils.query.Page;
import cn.chainco.cts.utils.query.QueryOrder;
import cn.chainco.cts.utils.query.QueryParam;

@SuppressWarnings("unchecked")
public class EmployeeManagerImpl extends CommonManagerImpl implements IEmployeeManager{
	
	private IEmplyeeDao emplyeeDao;
	public IEmplyeeDao getEmplyeeDao() {
		return emplyeeDao;
	}


	public void setEmplyeeDao(IEmplyeeDao emplyeeDao) {
		this.emplyeeDao = emplyeeDao;
	}


	public List<Employee> findEmployeeByCompany(Company company) {
		return emplyeeDao.findEmployeeByCompany(company);
	}
	
	public List<Employee> findEmployeeByCompany(final Company company , final int type){
		return emplyeeDao.findEmployeeByCompany(company, type);
	}
	
	public Employee findEmployeeByUser(User user  , Company company){
		return emplyeeDao.findEmployeeByUser(user,company);
	}
	
	public List<Employee> findEmployeByUser(User user , String status){
		return emplyeeDao.findEmployeByUser(user ,  status);
	}
	
	public List<Employee> findEmployee(Company company , String type, String name , String status , String optype , String opval){
		return emplyeeDao.findEmployee(company, type , name, status, optype, opval);
	}
}
